package com.dy.nygl.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.dy.nygl.mapper.SystemAlertsMapper;
import com.dy.nygl.pojo.SystemAlerts;
import com.dy.nygl.service.SystemAlertsService;

@Service("systemAlertsService")

public class SystemAlertsSerivceImpl implements SystemAlertsService{
	@Resource(name="systemAlertsDao")
	private SystemAlertsMapper systemAlertsDao;
	
	public List<SystemAlerts> selectloading(){
		String slove = "NO";
		return systemAlertsDao.selectLoading(slove);
	}
	
	public List<SystemAlerts> selectAll(){
		return systemAlertsDao.selectAll();
	}
	
	public int addMessage(SystemAlerts message){
		return systemAlertsDao.insert(message);
	}
	
}
